import request from "@/request/index.js";

// 获取验证码
export function getCaptcha() {
    return request({
        url: '/user/captcha',
        method: 'get'
    })
}

// 登录
export function login(data) {
    return request({
        url: '/user/login',
        method: 'post',
        data
    })
}